package com.action;

import java.util.ArrayList;
import java.util.List;

import com.entity.FileEntity;
import com.opensymphony.xwork2.ActionSupport;
import com.service.mainpageService;

public class mainpageAction extends ActionSupport{
	private static final long serialVersionUID = 1L;
	private List<FileEntity> storedFileEntities = new ArrayList<FileEntity>();
	private mainpageService mainpageService = new mainpageService();
	public List<FileEntity> getStoredFileEntities() {
		return storedFileEntities;
	}

	public void setStoredFileEntities(List<FileEntity> storedFileEntities) {
		this.storedFileEntities = storedFileEntities;
	}

	public String getAnnonceType1() {
		storedFileEntities = mainpageService.getFileEntities();
		return "mainpage";
	}
	
	public String getAnnonceType2() {
		storedFileEntities = mainpageService.getFileEntities();
		return "mainpage";
	}

	public String getAnnonceType3() {
		storedFileEntities = mainpageService.getFileEntities();
		return "mainpage";
	}

	public String getAnnonceType4() {
		storedFileEntities = mainpageService.getFileEntities();
		return "mainpage";
	}
}
